package com.ruoyi.web.mapper;

import com.ruoyi.web.entity.BlackBaseInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface BlackBaseInfoMapper {
    int insert(BlackBaseInfo record);
    BlackBaseInfo selectById(String id);
    int updateById(BlackBaseInfo record);

    List<BlackBaseInfo> selectList(Map<String, Object> params);
    
    int selectCount(Map<String, Object> params);

    List<BlackBaseInfo> selectListNoPage(Map<String, Object> params);

    List<Map<String, Object>> selectBaseInfoWithOperation(Map<String, Object> params);

    String getCompanyNameById(String id);

    /**
     * 远程搜索公司名称
     */
    List<BlackBaseInfo> remoteSearchByCompanyName(Map<String, String> params);

    /**
     * 远程搜索法人名称
     */
    List<BlackBaseInfo> remoteSearchByLegalName(Map<String, String> params);
} 